{include file="header.tpl" title="HRFORMULAR"}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong" size="1" onChange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
    <td nowrap="nowrap">{$lbl_CMFLD}</td>
    <td colspan="3" style="color:#FF0000;">		
		<select name="CMFLD" id="CMFLD" size="1" onchange="document.getElementById('getName').click();" style="background-color:{$color_CMFLD};">			
 		{foreach from=$cbo_cmfld key=k item=v}
      		<option value="{$k}" {if $CMFLD eq $k} selected="selected" {/if}>{$v}</option>
 		{/foreach}
		</select> 
     * <input type="submit" id="getName" name="getName" value="   " style="visibility:hidden;"/> </td>
  </tr>
  <tr>
    <td>{$lbl_VNDESC}</td>
    <td colspan="3">
      	<input name="VNDESC" id="VNDESC" type="text" value="{$VNDESC}" size="50" maxlength="50" {if $flag eq 'yes'} readonly="readOnly" {/if}/>	</td>
  </tr>
  <tr>
    <td>{$lbl_ENDESC}</td>
    <td colspan="3">
		<input name="ENDESC" id="ENDESC" type="text" value="{$ENDESC}" size="50" maxlength="50"  {if $flag eq 'yes'} readonly="readOnly" {/if}/>	</td>
  </tr>
  <tr>
    <td>{$lbl_ISDFT}</td>
    <td colspan="3">
		<select name="ISDFT" id="ISDFT" size="1">
 		{foreach from=$cbo_enabled key=k item=v}
      	<option value="{$k}" {if $ISDFT eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select>   </td>
	</tr>
  <tr>
    <td>{$lbl_LSCODE}</td>
    <td colspan="3" style="color:#FF0000;">
    	<input type="text" name="LSCODE" id="LSCODE" size="20" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onblur="this.value=this.value.toUpperCase().replace(' ','');"/>
		 *  <input type="button" onclick="mywindow = window.open('hrcmlists_lscode.php?id='+document.getElementById('CMFLD').value+'&type=1', 'mywindow','menubar=0,resizable=yes,width=400,height=300, scrollbars=yes');mywindow.moveTo((screen.width-400)/2,screen.height/2);" name="findlscode" id="replacement_binoculars" value="     " />	</td>
  </tr>
  <tr>
    <td>{$lbl_LSVAL}</td>
    <td colspan="3">
		<input name="LSVAL" id="LSVAL" type="text" value="{$LSVAL}" size="20" maxlength="20" onBlur="checkCurrency20(this,this.value); formatNumber(this,this.value);" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" style="text-align:right;"/>	</td>
  </tr>
  <tr>
    <td>{$lbl_LSDESC}</td>
    <td colspan="3"><input name="LSDESC" id="LSDESC" type="text" value="{$LSDESC}" size="50" maxlength="50" /></td>
  </tr>
  <tr>
    <td>{$lbl_CM2POS}</td>
    <td colspan="3"><select name="CM2POS" id="CM2POS" size="1">
 		{foreach from=$cbo_CM2POS key=k item=v}
      	<option value="{$k}" {if $CM2POS eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select></td>
  </tr>
  <tr>
    <td><input name="TOTAL" id="TOTAL" type="hidden"/></td>
    <td colspan="3">
	<input type="button" name="themmoihrcmlists" id="themmoihrcmlists" value="{$ten_them_moi}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" onClick="addRow();">
      <input type="button" name="capnhathrcmlists" id="capnhathrcmlists" value="{$ten_cap_nhat}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" onClick="updateRow();" disabled="disabled" />
	  </td>
    </tr>
<tr>
<td colspan="4">
<div align="center" style="width:680px;height:300px;overflow:auto;border:1px solid #6B82AC;">
<table width="100%" border="0" cellpadding="0" cellspacing="1" id="tblSample">
  <thead>
  <tr>
    <th nowrap="nowrap">{$lbl_STT}</th>  
    <th nowrap="nowrap">{$lbl_VNDESC}</th>
    <th nowrap="nowrap">{$lbl_ENDESC}</th>
    <th nowrap="nowrap">{$lbl_ISDFT}</th>
	<th nowrap="nowrap">{$lbl_LSCODE}</th>
	<th nowrap="nowrap">{$lbl_LSVAL}</th>
	<th nowrap="nowrap">{$lbl_LSDESC}</th>	
	<th nowrap="nowrap">{$lbl_CM2POS}</th>
  </tr>
  </thead>
  <tbody></tbody>
</table>
{$tbldata}</div></td>
<tr>
<td colspan="4"></td>
</tr>
<tr>
<td colspan="4" align="right">
<input type="submit" name="capnhat" value="{$ten_cap_nhat}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"  /></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td >
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong1" size="1" onChange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
